<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Route::get('/admin', fn() => \Slowlyo\OwlAdmin\Admin::view());

Route::group([
    'domain'     => config('admin.route.domain'),
    'prefix'     => config('admin.route.prefix'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->resource('dashboard', \App\Admin\Controllers\HomeController::class);
    $router->resource('system/settings', \App\Admin\Controllers\SettingController::class);
	$router->get('groups', [\App\Admin\Controllers\DiscuzController::class, 'getGroups']);
	$router->get('common/setting', [\App\Admin\Controllers\SettingController::class, 'getSetting']);
	$router->post('common/setting', [\App\Admin\Controllers\SettingController::class, 'setSetting']);
	$router->get('aq/count',[\App\Admin\Controllers\AqConversationDetailController::class,'getCount']);
});
